package com.wizardClient;

import com.appclient.ClientWizardController;
import javafx.scene.layout.StackPane;

/**
 *
 * @author Sawior
 */
public class ClientScreensFramework extends StackPane {

    public static final String FIRST_SCREEN = "Wybierz klienta";
    public static final String FIRST_SCREEN_FXML = "cwPage1.fxml";
    public static final String SECOND_SCREEN = "Wybierz pojazd";
    public static final String SECOND_SCREEN_FXML = "cwPage2.fxml";
    public static final String THIRD_SCREEN = "Dane platnosci";
    public static final String THIRD_SCREEN_FXML = "cwPage3.fxml";
    public static final String FOUR_SCREEN = "Wybierz taryfe";
    public static final String FOUR_SCREEN_FXML = "cwPage4.fxml";
    public static final String FIVE_SCREEN = "Wybierz stanowisko";
    public static final String FIVE_SCREEN_FXML = "parkingSpaces.fxml";
    public static final String SIX_SCREEN = "Podsumowanie";
    public static final String SIX_SCREEN_FXML = "cwPage6.fxml";
    private ClientScreenController mainContainer;

    public ClientScreensFramework(ClientWizardController clientWizardController) {
        mainContainer = new ClientScreenController(clientWizardController);
        mainContainer.loadScreen(ClientScreensFramework.FIRST_SCREEN, ClientScreensFramework.FIRST_SCREEN_FXML);
        mainContainer.loadScreen(ClientScreensFramework.SECOND_SCREEN, ClientScreensFramework.SECOND_SCREEN_FXML);
        mainContainer.loadScreen(ClientScreensFramework.THIRD_SCREEN, ClientScreensFramework.THIRD_SCREEN_FXML);
        mainContainer.loadScreen(ClientScreensFramework.FOUR_SCREEN, ClientScreensFramework.FOUR_SCREEN_FXML);
        mainContainer.loadScreen(ClientScreensFramework.FIVE_SCREEN, ClientScreensFramework.FIVE_SCREEN_FXML);
        mainContainer.loadScreen(ClientScreensFramework.SIX_SCREEN, ClientScreensFramework.SIX_SCREEN_FXML);
        mainContainer.setScreen(ClientScreensFramework.FIRST_SCREEN);
        this.getChildren().addAll(mainContainer);

    }

    public ClientScreenController getScreensController() {
        return mainContainer;
    }
}
